/*
 * Copyright 2023 Harness, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.main {
  max-height: calc(var(--page-height) - 132px);
  overflow: scroll !important;
  overflow-x: hidden !important;
  background-color: var(--primary-bg) !important;

  .table {
    .row {
      height: 80px;
      display: flex;
      justify-content: center;

      .title {
        font-weight: 600;
      }
    }
  }

  .noData > div {
    height: calc(100vh - var(--page-header-height, 64px) - 120px) !important;
  }
}

.generalContainer {
  width: 100%;
  background: var(--grey-0) !important;
  box-shadow: 0px 0px 1px rgba(40, 41, 61, 0.08), 0px 0.5px 2px rgba(96, 97, 112, 0.16);
  border-radius: 4px;
  padding: var(--spacing-xlarge) !important;
}

.widthContainer {
  width: var(--select-dropdown-width) !important;
}

.greyContainer {
  background: var(--grey-50) !important;
  border-radius: 4px !important;
}

.label {
  color: var(--grey-700) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

.labelText {
  font-size: 13px !important;
}

.dividerContainer {
  opacity: 0.2;
  height: 1px;
  color: var(--grey-100);
  margin: 20px 0;
}

.checkContainer {
  width: 100% !important;
}

.codeClose {
  cursor: pointer !important;
  padding: var(--spacing-xsmall) !important;
  &:hover {
    background: var(--grey-100) !important;
    box-shadow: var(--elevation-2) !important;
  }
}

.codeCloseBtn {
  cursor: pointer !important;
}

.targetContainer {
  :global(.bp3-form-group) {
    margin-bottom: unset !important;
  }
}

.popover {
  transform: translateY(5px) !important;

  .menuItem {
    min-width: 130px !important;

    &:hover p {
      color: var(--white) !important;
    }
  }
  :global {
    .bp3-menu {
      min-width: 140px;
    }
  }
}

.paddingTop {
  margin-top: 13px !important;
}

.targetSpacingContainer {
  margin-bottom: 0 !important;
}

.buttonContainer {
  padding-top: var(--spacing-xsmall);
  padding-left: var(--spacing-small);
}

.greyButton {
  border-radius: 4px;
  border: 1px solid var(--grey-200);
  background: var(--grey-100) !important;
  display: flex;
  width: fit-content;
  padding: 1px 6px !important;
  max-width: 200px;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.headingSize {
  font-size: 16px !important;
}

.checkboxLabel {
  :global([class*='Tooltip--acenter']) {
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    vertical-align: middle;
  }
}

.checkboxText {
  color: var(--grey-400) !important;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
}

.minText {
  :global(.bp3-label) {
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
  }
}

.hintText {
  color: var(--gray-400) !important;
  font-size: 12px !important;
  font-style: normal;
  font-weight: 400 !important;
}

.bypassContainer {
  max-height: 200px !important;
  overflow: auto !important;
  border-radius: 4px !important;
  background: var(--grey-50) !important;
  width: var(--select-dropdown-width) !important;
}

.targetBox {
  display: flex;
  flex-wrap: wrap;
  max-width: calc(100% - 100px) !important;
  margin-bottom: var(--spacing-small) !important;

  .target {
    margin-bottom: var(--spacing-xsmall);
  }
}

.reviewerBlock {
  background-color: var(--primary-1) !important;
  padding: 3px 10px !important;
  gap: 5px !important;
}

.defaultReviewerContainer {
  gap: 10px;
  flex-wrap: wrap;
}

.truncateText {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activeMenuItem {
  background-color: var(--primary-2) !important;
  color: var(--grey-1000) !important;
}

.modal {
  min-height: 500px;
}

.noDataContainer {
  min-height: inherit;
}

.dialog {
  border-radius: 11px;
  position: relative;
  min-width: 800px;
  padding: var(--spacing-xlarge);
  max-height: 800px;
}
